<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/5
  Time: 16:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Cookie[] cookies = request.getCookies();
    if (cookies!=null&&cookies.length>0){
        for (Cookie cookie : cookies) {
            if (cookie.getName().equals("pwdCookie")){
                cookie.setPath("/");
                cookie.setMaxAge(0);
                response.addCookie(cookie);
             }
        }
    }
    session.invalidate();
%>
<script>
    window.location.href="<%=request.getContextPath()%>/html/login.jsp";
</script>
</body>
</html>
